/*
 * Customer Action
 */
var CKL     = require("../utils/checklogin"),
Response    = require("../utils/response"),
DaoMysql    = require('../models/dao-mysql').DaoMysql,
CacheRedis  = require('../models/cache-redis').CacheRedis,
User        = require('../models/user').User;
Page        = require('../models/page').Page;

module.exports = function(app)
{
	var dao = new DaoMysql(app.envConfig.dbMysql, app.mysqlClient, app.logmessage, new CacheRedis(app.envConfig.storeRedis, app.redisClient, app.logmessage, app.defs.DEFAULT_CACHE_EXPIRE_SECS));
	//客服列表get请求，验证是否登录
	app.get(app.envConfig.routes.service.url,CKL.logined);
	app.get(app.envConfig.routes.service.url,function(req,res){
		Response.render(app,res,app.envConfig.routes.service.page,{user:req.session.user});
	});
};